import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { HydratedDocument } from 'mongoose';

export type VideoInfoDocumentType = HydratedDocument<Video_Info>;

@Schema()
export class Video_Info {
  @Prop({ required: true, index: true })
  description: string;

  //描述
  @Prop({ required: true, index: true })
  video_url: string;

  //是否本地可播放
  @Prop({ required: true, default: true })
  local: boolean;

}

export const Video_InfoSchema = SchemaFactory.createForClass(Video_Info);
